<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>修改学员信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/css/styles.css" />
<link style="text/css" rel="stylesheet"
	href="${pageContext.request.contextPath}/statics/my97/skin/WdatePicker.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/statics/my97/WdatePicker.js"></script>

</head>

<body>
	<form action="${pageContext.request.contextPath}/student/update"
		method="post">
		<table class="form-control">
			<tr>
				<th>学号：</th>
				<td><input class="input-box" type="text" name="id"
					value="${stu.id}" readonly="readonly"  /></td>
			</tr>
			<tr>
				<th>姓名：</th>
				<td><input class="input-box" type="text" name="name"
					value="${stu.name}" /></td>
			</tr>
			<tr>
				<th>性别：</th>
				<td class="radio-box"><input type="radio" name="sex"
					<c:if test="${stu.sex eq true}">checked="checked"</c:if>
					value="true">男 <input type="radio" name="sex"
					<c:if test="${stu.sex eq false}">checked="checked"</c:if>
					value="false">女</td>
			</tr>
			<tr>
				<th>生日：</th>
				<td><input type="text" name="bornDate"
					value="<fmt:formatDate value="${stu.bornDate}" pattern="yyyy-MM-dd" />"
					onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',readOnly:true})"
					class="input-date" /></td>
			</tr>

			<tr>
				<td colspan="2" class="region-btn"><input type="submit"
					class="input-btn" value="提交" /> <input type="button"
					class="input-btn" value="返回" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
